/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-11-27     yoyoyes      first version
 */
#ifndef APPLICATIONS_DEMO_CONFIG_H_
#define APPLICATIONS_DEMO_CONFIG_H_

#include "rtthread.h"

/* 线程管理 */
//#define THREAD_CREATE_DEMO
//#define THREAD_TIMESLICE_DEMO
//#define THREAD_SCHEDULER_HOOK_DEMO

/* 时钟管理 */
//#define TIMER_DYNAMIC_DEMO
//#define TIMER_STATIC_DEMO

/* 线程间同步 */
//#define THREAD_SEMAPHORE_DEMO1
//#define THREAD_SEMAPHORE_DEMO2
//#define THREAD_MUTEX_DEMO1
//#define THREAD_MUTEX_DEMO2
#define THREAD_EVENT_DEMO

#ifdef THREAD_CREATE_DEMO
#include "thread_create_demo.h"
#endif
#ifdef THREAD_TIMESLICE_DEMO
#include "thread_timeslice_demo.h"
#endif
#ifdef THREAD_SCHEDULER_HOOK_DEMO
#include "thread_scheduler_hook_demo.h"
#endif

#ifdef TIMER_DYNAMIC_DEMO
#include "timer_dynamic_demo.h"
#endif
#ifdef TIMER_STATIC_DEMO
#include "timer_static_demo.h"
#endif

#ifdef THREAD_SEMAPHORE_DEMO1
#include "thread_semaphore_demo1.h"
#endif
#ifdef THREAD_SEMAPHORE_DEMO2
#include "thread_semaphore_demo2.h"
#endif
#ifdef THREAD_MUTEX_DEMO1
#include "thread_mutex_demo1.h"
#endif
#ifdef THREAD_MUTEX_DEMO2
#include "thread_mutex_demo2.h"
#endif
#ifdef THREAD_EVENT_DEMO
#include "thread_event_demo.h"
#endif

#endif /* APPLICATIONS_DEMO_CONFIG_H_ */
